<template lang="pug">
    skin(@up="up",@down="down",@yes="yes",@back="back",@duringUp="up",@duringDown="down")
        div(class="flex-column h2")
            div(class="flex-column-item")
            div(class="flex-column-item center")
                span(v-if="infusionDoing") 大剂量输注中...
                span(v-else) 按ACT输注
            div(class="flex-column-item center")
                span(v-if="infusionDoing") 按ESC返回
                span(v-else) {{amount}}
            div(class="flex-column-item")
</template>

<script>

export default {
    data(){
        return { 
            infusionDoing: false,
            amount: 0,
            interval: null
         }
    },
    methods:{
        up(){
        },
        down(){
        },
        beforeDestroy() {
            clearInterval(this.interval);
        },
        yes(){
            this.$router.push('/');
        },
        back(){
            this.$router.push('common');
        }
    }
}
</script>

<style>

</style>
